package com.fan.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor

@Data
public class CommonResults {
    private Integer code;
    private String msg;
    private Object result;
    private Long count;

    public CommonResults(Integer code, String msg, Object result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }
    public CommonResults(Integer code, String msg, Object result, Long count) {
        this.code = code;
        this.msg = msg;
        this.result = result;
        this.count = count;
    }

    public CommonResults(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
